package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.bgrconsulting.stockorderentry.service.model.Account;
import com.bgrconsulting.stockorderentry.service.model.AccountList;

@XmlRootElement(name = "AccountListResponse")
public class AccountListConverter {
	
	private AccountList enity = null;
	
	public AccountListConverter() {
		enity = new AccountList();
	}
	
	public AccountListConverter(AccountList accountList) {
		enity = accountList;
	}

	@XmlElement(name = "Account")
	public Account[] getAccounts() {
		
		return enity.getAccounts();
	}
}
